<%--
  Created by IntelliJ IDEA.
  User: Dell
  Date: 2021/11/22
  Time: 15:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath();%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>登录页</title>
    <link rel="stylesheet" type="text/css" href="<%=path %>/web/app/css/publice.css"/>
    <link rel="stylesheet" type="text/css" href="<%=path %>/web/app/css/style.css"/>
    <link rel="stylesheet" href="<%=path %>/web/app/css/swiper.min.css">
    <script src="<%=path %>/web/app/js/jquery-1.10.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        fnResize();
        var evt = "onorientationchange" in window ? "orientationchange" : "resize";
        window.addEventListener("resize", function() {
            fnResize()
        }, false);
        function fnResize(){
            var docWidth = document.documentElement.clientWidth,
                body = document.getElementsByTagName('html')[0];
            if(docWidth >= 750) docWidth = 749;
            body.style.fontSize = docWidth / 20 + 'px';
        }
    </script>
    <script src="<%=path %>/web/app/js/swiper.min.js"></script>
    <script type="text/javascript" src="<%=path %>/web/app/js/style.js" ></script>

    <script type="text/javascript">
        function check_login(){
            var loginname = document.getElementById("loginname").value;
            var password = document.getElementById("password").value;
            if(loginname==""){
                alert("登录账号不能为空，请检查！");
                return false;
            }
            if(password == ""){
                alert("登录密码不能为空，请检查！");
                return false;
            }
        }

        function check_msg(){
            var msg = '${msg }';
            if(msg=="success"){
                window.location.href = "MyApp";
            }
            if(msg=="error"){
                alert("您的登录账号或者密码有误！请检查！如果是新用户登录，请联系管理员开启您的登陆权限！");
            }
        }

    </script>

</head>
<body onload="check_msg()">
<div class="ts-wrap">
    <form action="app_login_check" method="post" onsubmit="return check_login()">
        <div class="login_con">
            <img style="height: 180px;width: 280px;" src="<%=path %>/web/app/img/n2.jpg" >
            <input type="text" placeholder="用户名" name="loginname" id="loginname" value="" class="testA text" onClick="test1()" onblur="test2()"  id="testA" />
            <input type="password" name="password" id="password" placeholder="密码" class="testB text" onClick="test3()" onblur="test4()"  id="testB" />
            <input type="submit" value="登录" class="testC text" />
            <p>一分钟轻松申请VIP会员! <a href="pres_users" class="sV">申请VIP</a><span><a href="#">忘记密码？</a></span></p>
        </div>
    </form>
    <!--固定底部 S-->
    <jsp:include page="/footer" ></jsp:include>
    <!--固定底部 E-->
</div>
</body>
</html>

